package com.haoyeteng.sxbd.modular.business.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.haoyeteng.sxbd.modular.business.model.Category;
import com.haoyeteng.sxbd.modular.business.model.News;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 新闻表 Mapper 接口
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-06-11
 */
public interface NewsMapper extends BaseMapper<News> {

    /**
     * 查询列表
     * @param page
     * @param categoryId
     * @param newsName
     * @return
     */
    List<Map<String, Object>> selectNewses(Page<News> page, @Param("categoryId")Integer categoryId ,@Param("newsName")String newsName);
    
    List<Map<String,Object>> selectWebNews(Page<News> page,@Param("categoryId")Integer categoryId);
    
    
}
